/*
 * Copyright 2021 The Chromium Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

:host {
  white-space: pre;
  overflow: hidden;
  display: flex;
}

.prefix {
  flex: none;
  color: var(--color-primary);
}

.text-prompt-input {
  flex: auto;
  position: relative;
}

.text-prompt-input input {
  width: 100%;
  border: none;
  outline: none;
  position: absolute;
  left: 0;
  padding: 0;
  z-index: 2;
  background-color: transparent;
}

.text-prompt-input .suggestion {
  color: transparent;
  position: absolute;
  left: 0;
  z-index: 1;
}

.text-prompt-input .suggestion::after {
  content: attr(suggestion);
  color: var(--color-background-highlight);
}
